package com.xishu.entity.shop;

import com.xishu.annotation.dao.DefaultValue;
import com.xishu.annotation.lang.Lang;
import com.xishu.entity.AbstractEntity;
import com.xishu.entity.ShopItem;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiModelProperty;

import javax.persistence.Entity;
import javax.persistence.Index;
import javax.persistence.Table;
import javax.persistence.Transient;

@Api(description = "外卖配置")
@Entity(name = "take_out_setting")
@Table(indexes = {@Index(columnList = "shopId")})
public class TakeOutSetting extends ShopItem {
    @ApiModelProperty(value = "餐厅ID")
    private Long companyId;

    @ApiModelProperty(value = "分店ID")
    private Long shopId;

    @Transient
    @ApiModelProperty(value = "场景归属的分店")
    private String shopName_zh;

    @Transient
    @ApiModelProperty(value = "场景归属的分店")
    private String shopName_en;

    @ApiModelProperty(value = "默认配置")
    @DefaultValue(defaultValue = "false")
    private Boolean defaultSetting;

    @ApiModelProperty(value = "名称")
    @Lang(key = "name")
    private String name;

    @ApiModelProperty(value = "中文名称")
    @Lang(key = "name")
    private String name_zh;

    @ApiModelProperty(value = "英文名称")
    @Lang(key = "name")
    private String name_en;

    @ApiModelProperty(value = "是否有关联的支付方式")
    private Boolean enablePayType;

    @ApiModelProperty(value = "关联的支付方式ID")
    private Long payTypeId;

    @ApiModelProperty(value = "关联的支付方式中文")
    private String payTypeName_zh;

    @ApiModelProperty(value = "关联的支付方式英文")
    private String payTypeName_en;

    public String getPayTypeName_zh() {
        return payTypeName_zh;
    }

    public void setPayTypeName_zh(String payTypeName_zh) {
        this.payTypeName_zh = payTypeName_zh;
    }

    public String getPayTypeName_en() {
        return payTypeName_en;
    }

    public void setPayTypeName_en(String payTypeName_en) {
        this.payTypeName_en = payTypeName_en;
    }

    public String getShopName_zh() {
        return shopName_zh;
    }

    public void setShopName_zh(String shopName_zh) {
        this.shopName_zh = shopName_zh;
    }

    public String getShopName_en() {
        return shopName_en;
    }

    public void setShopName_en(String shopName_en) {
        this.shopName_en = shopName_en;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public Long getCompanyId() {
        return companyId;
    }

    public void setCompanyId(Long companyId) {
        this.companyId = companyId;
    }

    public Long getShopId() {
        return shopId;
    }

    public void setShopId(Long shopId) {
        this.shopId = shopId;
    }

    public Boolean getDefaultSetting() {
        return defaultSetting;
    }

    public void setDefaultSetting(Boolean defaultSetting) {
        this.defaultSetting = defaultSetting;
    }

    public String getName_zh() {
        return name_zh;
    }

    public void setName_zh(String name_zh) {
        this.name_zh = name_zh;
    }

    public String getName_en() {
        return name_en;
    }

    public void setName_en(String name_en) {
        this.name_en = name_en;
    }

    public Boolean getEnablePayType() {
        return enablePayType;
    }

    public void setEnablePayType(Boolean enablePayType) {
        this.enablePayType = enablePayType;
    }

    public Long getPayTypeId() {
        return payTypeId;
    }

    public void setPayTypeId(Long payTypeId) {
        this.payTypeId = payTypeId;
    }
}
